package com.fla.aiba.entity.user;

import com.fla.aiba.entity.Entitys;


import javax.persistence.*;
import java.math.BigDecimal;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.io.Serializable;
import java.util.logging.SimpleFormatter;

/** 
 * 用户表
 */
@Entity
@Table(name = "t_user")
public class User extends Entitys implements Serializable {
	private static final long serialVersionUID = 1L;
		@Id
		private String  id ;
		 /**
		 	昵称
		 **/
		 @Column(nullable = false)
		 private String  nickName ;
		 /**
		 	性别 0人妖 1男 2 女
		 **/
		 @Column(nullable = false,columnDefinition = "INT default 0")
		 private Integer  sex ;
		 /**
		 	年龄
		 **/
		 private Integer  age ;
		 /**
		 	出生年月
		 **/
		 private String  birthday ;
		 /**
		 	头像
		 **/
		 private String  avatar ;

		 /**
		 	个性签名
		 **/
		 private String  signature ;
		/**
		 * 手机号码
		 */
		private String mobile;
		/**
		 经伟度转换来的地理编码(用户当前的地理位置）
		 **/
		private String  geohash ;
		/**
		 登录的省份
		 **/
		private String  loginProvince ;
		/**
		 登录的祥细地址
		 **/

		private String  loginAddress ;
		/**
		 登录城市
		 **/

		private String  loginCity ;
		 /**
		 	创建时间
		 **/
		 @Column(nullable = false)
		 private Date  registerTime=new Date() ;

  //================================set get=============


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getSignature() {
		return signature;
	}

	public void setSignature(String signature) {
		this.signature = signature;
	}

	public Date getRegisterTime() {
		return registerTime;
	}

	public void setRegisterTime(Date registerTime) {
		this.registerTime = registerTime;
	}

	public String getGeohash() {
		return geohash;
	}

	public void setGeohash(String geohash) {
		this.geohash = geohash;
	}

	public String getLoginProvince() {
		return loginProvince;
	}

	public void setLoginProvince(String loginProvince) {
		this.loginProvince = loginProvince;
	}

	public String getLoginAddress() {
		return loginAddress;
	}

	public void setLoginAddress(String loginAddress) {
		this.loginAddress = loginAddress;
	}

	public String getLoginCity() {
		return loginCity;
	}

	public void setLoginCity(String loginCity) {
		this.loginCity = loginCity;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
}